

<?php

include "../../shared/config.php";
$cv_name = $_POST['cv_name'];
$sex = $_POST['sex'];
$name=$_POST['name'];
$tel = $_POST['tel'];
$email= $_POST['email'];
$education = $_POST['education'];
$certification = $_POST['certification'];
$job = $_POST['job'];
$about = $_POST['about'];
$ID = $_GET['id'];
$clan = $_GET['clan'];
if($clan=="'zh'"){
	$sql = "UPDATE cv SET cv_name = '$cv_name', sex = '$sex', name = '$name', tel = '$tel', email = '$email', education = '$education', certification = '$certification', job = '$job', about = '$about' WHERE cv_id = $ID";
}
else{
	$sql = "UPDATE cv_en SET cv_name = '$cv_name', sex = '$sex', name = '$name', tel = '$tel', email = '$email', education = '$education', certification = '$certification', job = '$job', about = '$about' WHERE cv_id = $ID";
}

$insert = mysqli_query($conn,$sql);

if(!$insert)
    {  
        echo "无法新增术语信息: ".mysqli_error($conn);  
    }  
    else  
    {  
		header("location: ../../page/em/index.php");
    }  
 
 
mysqli_close($conn);
?>